package com.huawang.mdesign.model.service.request;

import com.huawang.business.constants.ParamErrorConstants;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

/**
 * @auther lairenmao
 * @date 2024/11/13
 */
@Schema(description = "对指定范围内的模型进行指定规则的校验")
@Data
public class ValidSpecifiedRangeElementDTO extends ValidElementDTO {
    @Schema(title = "校验规则对象id")
    @NotEmpty(message = ParamErrorConstants.NO_VALIDATION_RULE_IDS)
    private List<String> ruleInstanceIds;

    @Schema(title = "规则列表")
    private List<String> ruleKeys;

    @Schema(title = "是否排除只读")
    private Boolean excludeReadOnly;

    @Schema(title = "定义模式的泳道id集合")
    private Set<String> definitionModeInstanceIds = new HashSet<>();

    @Schema(title = "使用模式的泳道id集合")
    private Set<String> usageModeInstanceIds = new HashSet<>();

    @Schema(title = "是否校验子模型")
    @NotNull(message = ParamErrorConstants.NO_IS_CHECK_CHILDREN)
    private Boolean isCheckChildren;


}
